from django import forms


class PubBlogForm(forms.Form):
    title = forms.CharField(max_length=50, error_messages={'required': '标题不能为空'})
    content = forms.CharField(error_messages={'required': '内容不能为空'})
    category = forms.IntegerField(error_messages={'required': '分类不能为空'})
